﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BDShop.Utilities
{
    public static class Util
    {
        public static DateTime ConvertStringToDate(string strDate)
        {
            try
            {
                string[] arrDate = strDate.Split('/');
                return DateTime.Parse(arrDate[2] + "/" + arrDate[1] + "/" + arrDate[0]);
            }
            catch (Exception)
            {
                return DateTime.Parse("1900/01/01");
            }
        }
    }
}